-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows cfapi backend for vfs #2778
Conversation
Signed-off-by: Kevin Ottens <[email protected]>
Signed-off-by: Kevin Ottens <[email protected]>
For now this implements only the logic necessary to get a test suite equivalent to the TestSyncVirtualFiles one to pass. It doesn't (yet) honor request to fetch files from the system. Signed-off-by: Kevin Ottens <[email protected]>
Signed-off-by: Kevin Ottens <[email protected]>
This reduces code duplication and opportunities of mistakes between the test and the implementation. Signed-off-by: Kevin Ottens <[email protected]>
Since we often checked the same file states to see if they were virtual, non virtual or gone, let's factor this out. This way intent in tests is clearer. Signed-off-by: Kevin Ottens <[email protected]>
This comes with a test simulating an open request coming from another process (although in our case it's really just a thread). The actual hydration works as expected by cfapi, handling of encrypted files is for now missing. Signed-off-by: Kevin Ottens <[email protected]>
Otherwise this would attempt to download the file everytime we check the direct editor for a given file which wouldn't be adequate. Would also lead to a deadlock in our case since that would happen in the main thread and implicit hydration is driven from there as well. Signed-off-by: Kevin Ottens <[email protected]>
Signed-off-by: Kevin Ottens <[email protected]>
AppImage file: Nextcloud-PR-2778-46a5bd6b253751db1a5db9f2603cd3724de4fb6a-x86_64.AppImage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok. Let's see how it goes during QA.
@er-vin is there a beta version for windows for this feature so we can test ? |
@axheli It's enabled in the latest pre release. You can download it here: |
@FlexW Thank you :) |
This introduce a test suite and a minimal backend for CfAPI support on Windows when the VFS is used. So far it seems to do the job all the way to implicit hydration. Some integration with the system could be improved (like status emblem on icons) but better keep this for later iterations on the feature, let's stabilize and QA what's in there.
Fix #2637
Fix #1951